package cn.myschool.dao;

import cn.myschool.entity.Grade;
import cn.myschool.pojo.Grade2;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface GradeDao {
    //@Select("")
    public List<Grade> findALL();

    public Grade2 get(long id);
    public int add(Grade g);
    @Update("update s_grade set gname=#{gname} where id=#{id}")
    public int update(Grade g);
    @Delete("delete from s_grade where id=#{0}")
    public int del(long id);

}
